<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Script extends MY_Controller{

	public function index()
	{
	    $list = $this->cm->get_all($this->tbl->topic);
	    foreach ($list as $k=>$v){
            $t = mktime()-rand(1,10)*24*3600-rand(1,24)*3600-rand(1,60)*60-rand(1,60);
	        $this->cm->update($this->tbl->topic,array('atime'=>$t,'utime'=>$t),array('id'=>$v->id));
	    }
	    
	}
	
}

